<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="admin" tagdir="/WEB-INF/tags/common/admin"%>
<jsp:useBean id="beanObj" class="jadesport.Data" />
<jsp:useBean id="serviceObj" class="ajaxjs.data.service.Feedback" />
<admin:editEntry valueObj="<%=beanObj%>" methodName="getFeedbackById" serviceObj="<%=serviceObj%>">
	<jsp:attribute name="headFrag">
		<%@include file="../public/head.jsp"%>
	</jsp:attribute>
</admin:editEntry>
<script>
	seajs.use([
	           'bigfoot/dhtml/form/form', 
	           'bigfoot/prototype/detail',
	           'bigfoot/widget/htmlEditor'
	   ], function(_form, detail, _htmlEditor){
		// 表单提交
		var formEl = document.querySelector('form'),
		form = Object.create(_form);
		form.formEl = formEl;
		form.autoDetectMehtodById();
		form.init();
		
		
		// 正文编辑器
		bf.htmlEditor = _htmlEditor; // 单例
		_htmlEditor.el = document.querySelector('.htmlEditor');
		_htmlEditor.init();
		_htmlEditor.setValue(document.querySelector('textarea[name="content"]').value); 
	});
</script>